package com.example.mapper.reserve;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.domain.reserve;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface reserveQuery extends BaseMapper<reserve> {

    @Delete("delete from reserve where user_openid=${user_openid} and articlesid=${articlesid}")
    int  delete(String user_openid,int articlesid);

    @Delete("delete from reserve where user_openid=${user_openid}")
    int deleteAll(String user_openid);
}
